<?
layout("/inc/layout.html",{title:sysTitle}){
?>

<div id="page-wrapper">
	<!--BEGIN TITLE & BREADCRUMB PAGE-->
	<div id="title-breadcrumb-option-demo" class="page-title-breadcrumb">
		<div class="page-header pull-left">
			<div class="page-title">采集任务管理</div>
		</div>
		<ol class="breadcrumb page-breadcrumb pull-left">
			<li><i class="fa fa-home"></i>&nbsp;<a href="main.html">首页</a>&nbsp;&nbsp;<i
				class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
			<li>互联网采集管理&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
			<li class="active">采集任务管理</li>
		</ol>

		<div class="clearfix"></div>
	</div>
	<!--END TITLE & BREADCRUMB PAGE-->
	<!--BEGIN CONTENT-->
	<div class="page-content">
		<!--BEGIN CONTENT-->
		<div class="row mbl">
					<div class="col-lg-1" style="padding-top: 6px;">
						任务名称
					</div>
					<div class="col-lg-3" style="margin-left: -20px;">
						<input type="text" class="form-control" id="taskName" name="taskName" onkeydown="enterSearch();"/>
					</div>
					<div class="col-lg-1" style="padding-top: 6px;">
						所属任务组
					</div>
					<div class="col-lg-3">
						<select id="taskGroupName" class="form-control" onchange="search(1);">
							<option selected="selected" value="0">请选择</option>
						</select>
					</div>
					<div class="col-lg-4" style="margin-left: -20px;">
						<div class="input-group input-group-sm mbs">
							<span class="input-group-btn">
								<button class="btn btn-sm btn-success" style="margin-right: 10px;" onclick="search(1)">搜索</button>
								<button class="btn btn-sm btn-success" style="margin-right: 10px;" onclick="reset()">清空</button>
								<button class="btn btn-sm btn-yellow" style="margin-right: 10px;" onclick="addOrEdit()">新增</button>
								<button class="btn btn-sm btn-red" onclick="delMultil()">删除</button>	
							</span>	
						</div>
					</div>
		</div>

		<table class="table table-hover table-striped table-bordered table-advanced tablesorter mbn">
			<thead>
				<tr>
					<th width="3%"><input  type="checkbox" class="checkall" /></th>
					<th>序号</th>
					<th>任务名称</th>
					<th>所属任务组</th>
					<th>创建时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody id="datas"></tbody>
		</table>
		<div id="page1" style="text-align: center; margin-top: 20px;"></div>
		<!--END CONTENT-->
	</div>
</div>
<?} ?>
<script type="text/javascript" src="modules/spider/js/gather_task.js"></script>
<script type="text/javascript" src="modules/spider/js/common.js"></script>
<div class="col-lg-12" id="add" style="display: none;">
	<input type="hidden" id="id" value="" />
	<div class="panel">
		<div class="panel-body pan" >
			<div class="form-body pal">
				<div style="margin-bottom: 80px;">
					<label for="addTaskName" class="col-md-3 control-label">
						<div>名称
							<span class='require'>*</span>
						</div>
	                </label>
					<div class="col-md-12">
						<div class="input-icon">
							<input id="addTaskName" type="text"  class="form-control"  placeholder="请输入任务名称"/>
						</div>
					</div>
				</div>
				<div style="margin-bottom: 280px;">
					<label for="addTaskSummary" class="col-md-3 control-label">
						<div>描述
							<span class='require'>&nbsp;</span>
						</div>
	                </label>
					<div class="col-md-12">
						<div class="input-icon">
							<textarea id="addTaskSummary" class="form-control" cols="7" rows="7" placeholder="请输入任务描述"></textarea>
						</div>
					</div>
				</div>
				<div>
					<label for="addGroupName" class="col-md-3 control-label">
				 		<div>所属组
							<span class='require'>*</span>
						</div>
                   	</label>
					<div class="col-md-12">
						<div class="input-icon">
							<select id="addGroupName" class="form-control">
								<option value="0" selected="selected">请选择</option>
							</select>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
 </div>